import { createApp } from 'vue'

import App from './App.vue'
import router from './router'
import pinia from './stores'

// 引入vant样式全局使用
import 'vant/lib/index.css'
import 'virtual:svg-icons-register'

// 引入全局样式
import '@/styles/main.scss'
// 引入全局插件对象
import directives from '@/directives/index'

const app = createApp(App)

app.use(pinia)
app.use(router)
app.use(directives)

app.mount('#app')

// const sum = (num1: number, num2: number): number => {
//   return num1 + num2
// }

// type myFn = (num1: number, num2: number) => number
// const sum1: myFn = (num1, num2) => {
//   return num1 + num2
// }
